cmake_minimum_required(VERSION 3.13)
project(MY_TINY_WEB_SERVER)
set(CMAKE_CXX_STANDARD 14)

set(CMAKE_CXX_FLAGS "${CAMKE_CXX_FLAGS} -std=c++11 -pthread -lmysqlclient")

add_executable(MY_TINY_WEB_SERVER
        my-tiny-server/block_queue.h
        my-tiny-server/list_timer.h
        my-tiny-server/log.cpp
        my-tiny-server/log.h
        my-tiny-server/sql_connection_pool.h
        my-tiny-server/sql_connection_pool.cpp
        my-tiny-server/http_conn.h
        my-tiny-server/http_conn.cpp
        my-tiny-server/main.cpp
        my-tiny-server/threadpool.h
        )

link_libraries(mysqlclient)
target_link_libraries(MY_TINY_WEB_SERVER  mysqlclient)